using System;

namespace UserManagementService.DTOs;

/// <summary>
/// 文件下载结果DTO
/// </summary>
public class FileDownloadResultDto
{
    /// <summary>
    /// 文件名
    /// </summary>
    public string FileName { get; set; }

    /// <summary>
    /// 文件内容（Base64编码）
    /// </summary>
    public string FileContent { get; set; }

    /// <summary>
    /// 文件大小（字节）
    /// </summary>
    public long FileSize { get; set; }

    /// <summary>
    /// MIME类型
    /// </summary>
    public string ContentType { get; set; }

    /// <summary>
    /// 下载时间
    /// </summary>
    public DateTime DownloadTime { get; set; } = DateTime.UtcNow;

    /// <summary>
    /// 是否成功
    /// </summary>
    public bool Success { get; set; } = true;

    /// <summary>
    /// 错误信息
    /// </summary>
    public string ErrorMessage { get; set; }
}